package com.hcyy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hcyy.entity.Cart;

public interface CartDao {
	public int insertCart(Cart cart);
	public Integer findCart(@Param("spid")String spid,@Param("dwbh")String dwbh,@Param("sjid")int sjid);
	public int updateCart(Cart cart);
	public List<Cart> findCartByUserID(@Param("dwbh")String userid,@Param("sjid")int sjid);
	public void deleteCartByCid(Long cid);
	public void updateCartByCid(@Param("cid")Long cid,@Param("FQty")int FQty,@Param("FPrice")double FPrice);
	public List<Cart> findCartByCidArray(@Param("cids")String[] cids,@Param("dwbh")String dwbh,@Param("sjid")int sjid);
	public void deleteCartAfterOrder(@Param("spid")String spid,@Param("dwbh")String dwbh);
	public void updateCartPrice(@Param("cid")Long cid,@Param("FPrice")Double FPrice);
}
